package com.xjtu.conan.service;

import com.xjtu.conan.entity.ArticleCommentsInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.conan.entity.ArticleCommentsInfo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 话题评论表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface ArticleCommentsInfoService extends IService<ArticleCommentsInfo> {
    public List<ArticleCommentsInfo> getAllArticleCommentsInfo(int current, int size);

    public ArticleCommentsInfo getArticleCommentByid(Long acid);

    public int addArticleComments(ArticleCommentsInfo articlecommentsInfo) throws IOException;

    public List<ArticleCommentsInfo> getArticleCommentsByaid(Long aid);

    public List<ArticleCommentsInfo> getArticleCommentsBypid(Long pid);

    public int deleteArticleComments(Long acid);

    public int updateArticleComments(ArticleCommentsInfo articlecommentsInfo);

    public int getTotal();
}
